package com.drug.wms.domain;

import com.drug.common.annotation.Dict;
import com.drug.common.annotation.Excel;
import com.drug.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 往来单位对象 bus_contacts_unit
 *
 * @author wjZhao
 * @date 2021-11-13
 */
public class BusContactsUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;

    /**
     * 单位类型编码
     */
    @Excel(name = "往来单位类型编码")
    private String contactsUnitType;

    /**
     * 单位全名
     */
    @Excel(name = "单位全名")
    private String unitName;

    /**
     * 单位编号
     */
    @Excel(name = "单位编号")
    private String unitNo;

    /**
     * 单位地址
     */
    @Excel(name = "单位地址")
    private String unitAddress;

    /**
     * 邮编
     */
    @Excel(name = "邮编")
    private String postalCode;

    /**
     * 单位联系人
     */
    @Excel(name = "单位联系人")
    private String unitContact;

    /**
     * 税务登记号
     */
    @Excel(name = "税务登记号")
    private String taxRegisterNo;

    /**
     * 开户银行
     */
    @Excel(name = "开户银行")
    @Dict(dictTable = "bus_bank_acc_info",dicCode = "bank_no",dicText = "bank_name")
    private String bankAccount;

    /**
     * 开户行账号
     */
    @Excel(name = "开户行账号")
    private String bankAccountNm;

    /**
     * 单位电子邮箱
     */
    @Excel(name = "单位电子邮箱")
    private String unitEmail;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String idNo;

    /**
     * 单位电话
     */
    @Excel(name = "单位电话")
    private String unitPhone;

    /**
     * 法人代表
     */
    @Excel(name = "法人代表")
    private String legalRepresent;

    /**
     * 企业类型编码
     */
    @Excel(name = "企业类型编码")
    @Dict(dicCode="enterprise_type")
    private String enterpriseTypeCode;

    /**
     * 单位类型编码
     */
    @Excel(name = "单位类型编码")
    @Dict(dicCode="unit_type")
    private String unitTypeCode;

    /**
     * 单位备注
     */
    @Excel(name = "单位备注")
    private String unitRemark;

    /**
     * 数据状态
     */
    @Excel(name = "数据状态")
    private String validityCode;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getContactsUnitType() {
        return contactsUnitType;
    }

    public void setContactsUnitType(String contactsUnitType) {
        this.contactsUnitType = contactsUnitType;
    }

    public void setUnitTypeCode(String unitTypeCode) {
        this.unitTypeCode = unitTypeCode;
    }

    public String getUnitTypeCode() {
        return unitTypeCode;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitNo(String unitNo) {
        this.unitNo = unitNo;
    }

    public String getUnitNo() {
        return unitNo;
    }

    public void setUnitAddress(String unitAddress) {
        this.unitAddress = unitAddress;
    }

    public String getUnitAddress() {
        return unitAddress;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setUnitContact(String unitContact) {
        this.unitContact = unitContact;
    }

    public String getUnitContact() {
        return unitContact;
    }

    public void setTaxRegisterNo(String taxRegisterNo) {
        this.taxRegisterNo = taxRegisterNo;
    }

    public String getTaxRegisterNo() {
        return taxRegisterNo;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccountNm(String bankAccountNm) {
        this.bankAccountNm = bankAccountNm;
    }

    public String getBankAccountNm() {
        return bankAccountNm;
    }

    public void setUnitEmail(String unitEmail) {
        this.unitEmail = unitEmail;
    }

    public String getUnitEmail() {
        return unitEmail;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setUnitPhone(String unitPhone) {
        this.unitPhone = unitPhone;
    }

    public String getUnitPhone() {
        return unitPhone;
    }

    public void setLegalRepresent(String legalRepresent) {
        this.legalRepresent = legalRepresent;
    }

    public String getLegalRepresent() {
        return legalRepresent;
    }

    public void setEnterpriseTypeCode(String enterpriseTypeCode) {
        this.enterpriseTypeCode = enterpriseTypeCode;
    }

    public String getEnterpriseTypeCode() {
        return enterpriseTypeCode;
    }

    public void setUnitRemark(String unitRemark) {
        this.unitRemark = unitRemark;
    }

    public String getUnitRemark() {
        return unitRemark;
    }

    public void setValidityCode(String validityCode) {
        this.validityCode = validityCode;
    }

    public String getValidityCode() {
        return validityCode;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("contactsUnitType", getContactsUnitType())
                .append("unitAddress", getUnitAddress())
                .append("postalCode", getPostalCode())
                .append("unitContact", getUnitContact())
                .append("taxRegisterNo", getTaxRegisterNo())
                .append("bankAccount", getBankAccount())
                .append("bankAccountNm", getBankAccountNm())
                .append("unitEmail", getUnitEmail())
                .append("idNo", getIdNo())
                .append("unitPhone", getUnitPhone())
                .append("legalRepresent", getLegalRepresent())
                .append("enterpriseTypeCode", getEnterpriseTypeCode())
                .append("unitNo", getUnitNo())
                .append("unitRemark", getUnitRemark())
                .append("remark", getRemark())
                .append("validityCode", getValidityCode())
                .append("deptId", getDeptId())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
